package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.CarBean;
import com.molichuxing.services.infrastructure.bean.CarDetailBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 车辆表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-08-15
 */
public interface CarDetailMapper extends RootMapper<CarDetailBean> {



    /**
     * 根据车辆id查询车辆详细信息
     * @param carId
     * @return
     */
    @Override
    public CarDetailBean getById(@Param("carId") Integer carId);

    /**
     * 新增车辆详情
     * @param carDetailBean
     * @return
     */
    public Integer createCarDetail(CarDetailBean carDetailBean);

    /**
     * 根据车辆编辑车辆详细信息
     * @param carDetailBean
     * @return
     */
    public int modifyCarDetailById(CarDetailBean carDetailBean);

    /**
     * 根据车辆id查询车辆详细信息
     * @param carIdList
     * @return
     */
    public List<CarDetailBean> getByIds(@Param("carIdList") List<Integer> carIdList);

    /**
     * 导出使用
     * @return
     */
    public List<CarDetailBean> getCarDetailList();


    /**
     * 根据发动机号/电机号查询车辆信息
     * @param engineCode
     * @return
     */
    public CarDetailBean getCarDetailByEngineCode(@Param("engineCode") String engineCode);
}
